﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Xml;
using Common.Utilities;
using Common.Utilities.DLR;

namespace Workflows.Components.TextMining.Collapse
{
    [OrmClass("Person","PersonID",true)]
    [Serializable]
    [CollapsibleObject(typeof(Person),"PersonID",59,true)]
    public class Person 
    {
        public int PersonID;
        [EvaluableField("FirstName", FieldType.Character)]
        [OrmField("FirstName", SqlDbType.VarChar, 255, OrmFieldSerializationMethod.DefaultSerialization)] 
        public string FirstName;

        [EvaluableField("LastName", FieldType.Character)]
        [OrmField("LastName", SqlDbType.VarChar, 255, OrmFieldSerializationMethod.DefaultSerialization)] 
        public string LastName;
        
        [EvaluableField("MidName", FieldType.Character)]
        [OrmField("MidName", SqlDbType.VarChar, 255, OrmFieldSerializationMethod.DefaultSerialization)] 
        public string MidName;

        [EvaluableField("DOB", FieldType.DateTime)]
        [OrmField("DOB", SqlDbType.DateTime, 8, OrmFieldSerializationMethod.DefaultSerialization)]
        public DateTime DOB;
        
        [EvaluableField("SSN", FieldType.Character)]
        [OrmField("SSN", SqlDbType.VarChar, 9, OrmFieldSerializationMethod.DefaultSerialization)]
        public int SSN;
    }
}
